﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace gvPoco.ChartOptions
{
    /// <summary>
    /// Describes the format of the corresponding series in the chart. 
    /// To use default values for a series, specify an empty object {}. If a series or a value is 
    /// not specified, the global value will be used.
    /// </summary>
    public class Series
    {
        /// <summary>
        /// The color to use for this series. Specify a valid HTML color string.
        /// </summary>
        public string color { get; set; }

        /// <summary>
        /// Which axis to assign this series to, where 0 is the default axis, and 1 is the 
        /// opposite axis. Default value is 0; set to 1 to define a chart where different 
        /// series are rendered against different axes. At least one series much be allocated 
        /// to the default axis. You can define a different scale for different axes.
        /// </summary>
        public int targetAxisIndex { get; set; }

        /// <summary>
        /// A boolean value, where true means that the series should have a legend entry, and false means that it should not. 
        /// Default is true.
        /// </summary>
        public bool visibleInLegend { get; set; }

        public Series()
        {
            // Set defaults
            visibleInLegend = true;
        }
    }
}
